package com.gxc.healthfood.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 饮食计划实体类
 * @TableName diet_plans
 */
@TableName(value ="diet_plans")
@Data
public class DietPlans implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 饮食计划名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 饮食计划描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 总热量
     */
    @TableField(value = "total_calories")
    private BigDecimal totalCalories;

    /**
     * 总蛋白质
     */
    @TableField(value = "total_protein")
    private BigDecimal totalProtein;

    /**
     * 总脂肪
     */
    @TableField(value = "total_fat")
    private BigDecimal totalFat;

    /**
     * 总碳水化合物
     */
    @TableField(value = "total_carbohydrate")
    private BigDecimal totalCarbohydrate;

    /**
     * 饮食目标（可选值：LOSE_FAT, GAIN_MUSCLE, MAINTAIN）
     */
    @TableField(value = "goal")
    private String goal;

    /**
     * 是否当前激活的方案
     */
    @TableField(value = "active")
    private Integer active;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private Date createdAt;

    /**
     * 开始日期
     */
    @TableField(value = "start_date")
    private Date startDate;

    /**
     * 结束日期
     */
    @TableField(value = "end_date")
    private Date endDate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}